package com.hdoit.apollo.logical.stock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.stock.model.OutStock;
import com.hdoit.apollo.logical.viewmodel.stock.OutStockSearch;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 11:58:51
 * @comment
 */
@Repository(value="outStockMapper")
public interface OutStockMapper extends IMapper<OutStock>{

	public OutStock queryModelById(@Param("key") String key);

	public List<OutStock> queryListBySearch(@Param("search") OutStockSearch search);

	public List<OutStock> queryListMPForReturn(@Param("search") OutStockSearch search,
			@Param("pager") PagerModel pagerModel);

	public OutStock queryModelBySee(@Param("key") String key);

	public int queryCountMPForReturn(@Param("search") OutStockSearch search);

	int deleteOutStockData(@Param("billingId")String billingId);
	
	int deleteOutStockShowData(@Param("billingId")String billingId);
	
	int deleteOutStockCollocationData(@Param("billingId")String billingId);
}